package com.data.unityplugin_market.config

import com.data.unityplugin_market_lib.BuildConfig

class HttpConfig {
    companion object {
        const val BASE_URL = BuildConfig.APP_SERVER;


        const val LOGIN: String = BASE_URL + "app_login"

        /**
         * 获取订单
         */
        const val GET_ORDER: String = BASE_URL + "findOrder";

        /**
         * 删除商品
         */
        const val DELETE_GOODS = BASE_URL + "deleteShoppingCartGoods";

        /**
         * 查询订单
         */
        const val FIND_ORDER: String = BASE_URL + "findOrder"

        /**
         * 增加订单
         */
        const val ADD_ORDER: String = BASE_URL + "addOrder"

        /**
         * 修改订单
         */
        const val MODIFY_ORDER: String = BASE_URL + "modifyOrder"

        /**
         * 修改地址
         */
        const val MODIFY_ADDRESS: String = BASE_URL + "modifyReceivingAddress"

        /**
         * 获取购物车的列表
         */
        const val GET_SHOPPINGCART_LIST :String = BASE_URL + "findShoppingCartList"

        /**
         * 修改购物车的某一件商品的数量
         */
        const val UPDATE_GOODS_COUNT : String = BASE_URL + "updateGoodsCount"

        /**
         * 修改密码
         */
        const val MODIFY_PWD : String = BASE_URL + "retrievePassword"

        /**
         * 获取客服中心信息
         */
        const val GET_CUSTOMER_INFO : String = BASE_URL + "customerServiceCenter"

        var MSG_ID = "4b3d762ac1684225962b2d8bf6840892"

        var SESSION_ID = "6DBF4DB14F785D4942CF981DFCCC978C"

        var AUTHCODE = "9cdbf9bf564b0a5c3c9c91eceac5bc31"

        var USER_ID = "1"

        var PHONE_ID = "13726039988"

        fun getBaseKeyMap() : Map<String , String> {
            var map = HashMap<String , String>()
            map.put("msgid", MSG_ID)
            map.put("session_id", SESSION_ID)
            map.put("authCode", AUTHCODE);
            return map
        }
    }


}